#include <iostream>
using namespace std;

void reverseDisplay(const char * const s, int high)
{
  if (high > 0)
  {
    cout << s[high];
    reverseDisplay(s, high - 1);
  }
}

void reverseDisplay(const char * const s, int high)
{
  if (high > 0)
  {
    cout << s[high];
    reverseDisplay(s, high - 1);
  }
}

int main()
{
  reverseDisplay("123456");

  return 0;
}
